package com.king.modules.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.king.common.utils.text.StringUtils;

/**
 * 缓存信息
 * 
 * @author king
 */
@TableName("sys_cache")
public class SysCacheEntity {
	/** 缓存名称 */
	private String cacheName = "";

	/** 缓存键名 */
	private String cacheKey = "";

	/** 缓存内容 */
	private String cacheValue = "";

	/** 备注 */
	private String memo = "";

	public SysCacheEntity() {

	}

	public SysCacheEntity(String cacheName, String memo) {
		this.cacheName = cacheName;
		this.memo = memo;
	}

	public SysCacheEntity(String cacheName, String cacheKey, String cacheValue) {
		this.cacheName = StringUtils.replace(cacheName, ":", "");
		this.cacheKey = StringUtils.replace(cacheKey, cacheName, "");
		this.cacheValue = cacheValue;
	}

	public String getCacheName() {
		return cacheName;
	}

	public void setCacheName(String cacheName) {
		this.cacheName = cacheName;
	}

	public String getCacheKey() {
		return cacheKey;
	}

	public void setCacheKey(String cacheKey) {
		this.cacheKey = cacheKey;
	}

	public String getCacheValue() {
		return cacheValue;
	}

	public void setCacheValue(String cacheValue) {
		this.cacheValue = cacheValue;
	}

	public String getmemo() {
		return memo;
	}

	public void setmemo(String memo) {
		this.memo = memo;
	}
}
